The frames were generated in Keyshot and custom-coding on the website makes it interactive. Here is the overall process:
- Door animations are generated in Keyshot and sliced into individual frames using Photoshop.
- Spritesheets are created for various door types (OuterDoor, InnerDoor, SideDoor) and colors (Gray, Black).
- The web application loads these spritesheets as assets and displays a loading progress bar.
- Different door states (e.g., ‘OUTER_CLOSED’, ‘INNER_CLOSED’) are defined to represent their positions.
- A function is defined to open and close doors based on their current state, triggered by user-clicked buttons.
- Buttons enable users to switch between door colors (Gray and Black).
- The code captures current animations’ state and frames, switches colors, and displays animations for the new color.
- After both inner doors (InnerDoor and InnerDoor1) are open, an extra step closes the outer door (OuterDoor), completing the sequence.
This allows users to open and close doors with buttons, switch between door colors, and ensures that the sequence is completed by closing the outer door after both inner doors are open. Each product is a little different (some have front-only access, others have front and side access, some have multiple inner doors), so the code had to be modified slightly for each product.